<%@ page language="java" pageEncoding="UTF-8"%>
<%@ page import="java.util.*,com.mymail.myutil.*"%>
<%@ page import="com.mymail.entity.*"%>
<jsp:useBean id="user" class="com.mymail.entity.User" scope="session" />
<%
	request.setCharacterEncoding("UTF-8");
	String from = request.getParameter("from");
	String to = request.getParameter("to");
	String subject = request.getParameter("subject");
	String content = request.getParameter("content");
	String to1 = request.getParameter("chaosong");
	String to2 = request.getParameter("misong");
	content = content.replace("\\1", "&");

	if (Send.sendMail(from, to, subject, content, to1, to2, user)) {
		out.println("OK");
	} else {
		out.print(Send.error);
	}
%>